package com.yyge.entity;

import java.util.Objects;

/**
 * (Menu)实体类
 *
 * @author yyge
 * @since 2023-05-07 11:40:21
 */
public class Menu {
    public Menu() {
    }

    public Menu(Integer menuid) {
        this.menuid = menuid;
    }

    private Integer menuid;
    
    private String menuname;
    
    private String actionname;
    
    private Integer sort;
    
    private Integer display;
    
    private Integer parentid;
    /**
     * 菜单类型(目录-M,菜单-C,按钮-F)
     */
    private String menutype;
    /**
     * 权限标识
     */
    private String permission;

    public Integer getMenuid() {
        return menuid;
    }

    public void setMenuid(Integer menuid) {
        this.menuid = menuid;
    }

    public String getMenuname() {
        return menuname;
    }

    public void setMenuname(String menuname) {
        this.menuname = menuname;
    }

    public String getActionname() {
        return actionname;
    }

    public void setActionname(String actionname) {
        this.actionname = actionname;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getDisplay() {
        return display;
    }

    public void setDisplay(Integer display) {
        this.display = display;
    }

    public Integer getParentid() {
        return parentid;
    }

    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }

    public String getMenutype() {
        return menutype;
    }

    public void setMenutype(String menutype) {
        this.menutype = menutype;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Menu menu = (Menu) o;
        return Objects.equals(menuid, menu.menuid) && Objects.equals(menuname, menu.menuname) && Objects.equals(actionname, menu.actionname) && Objects.equals(sort, menu.sort) && Objects.equals(display, menu.display) && Objects.equals(parentid, menu.parentid) && Objects.equals(menutype, menu.menutype) && Objects.equals(permission, menu.permission);
    }

    @Override
    public int hashCode() {
        return Objects.hash(menuid, menuname, actionname, sort, display, parentid, menutype, permission);
    }

    @Override
    public String toString() {
        return "Menu{" +
                "menuid=" + menuid +
                ", menuname='" + menuname + '\'' +
                ", actionname='" + actionname + '\'' +
                ", sort=" + sort +
                ", display=" + display +
                ", parentid=" + parentid +
                ", menutype='" + menutype + '\'' +
                ", permission='" + permission + '\'' +
                '}';
    }
}

